package com.lcq.gulimall.order.feign;

import com.lcq.common.to.OrderItemLockTo;
import com.lcq.common.utils.R;
import com.lcq.gulimall.order.vo.SkuStockVo;
import com.lcq.gulimall.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WareFeignService {
    @PostMapping("ware/waresku/hasStocks")
    List<SkuStockVo> hasStocks(@RequestBody List<Long> skuIds);

    @PostMapping("ware/waresku/lockWare")
    R lockWare(@RequestBody WareSkuLockVo lockTos);
}
